package com.itheima.pojo.client;

import com.itheima.pojo.client.orderPaginationVo.OrderPaginationVo;

import java.util.List;

/**
 * @author ChenJunJie
 * @date 2022/6/22 9:13
 * 订单分页出参
 */
public class OrderPagingVo {
    /**
     * 响应内容
     */
    private List<OrderPaginationVo> records;
    /**
     * 总条数
     */
    private Integer total;
    /**
     * 每页显示条数
     */
    private Integer size;
    /**
     * 页码
     */
    private Integer current;
    /**
     * 总页数
     */
    private Integer pages;

    public OrderPagingVo() {
    }

    public OrderPagingVo(List<OrderPaginationVo> records, Integer total, Integer size, Integer current, Integer pages) {
        this.records = records;
        this.total = total;
        this.size = size;
        this.current = current;
        this.pages = pages;
    }

    public List<OrderPaginationVo> getRecords() {
        return records;
    }

    public void setRecords(List<OrderPaginationVo> records) {
        this.records = records;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    @Override
    public String toString() {
        return "OrderPagingVo{" +
                "records=" + records +
                ", total=" + total +
                ", size=" + size +
                ", current=" + current +
                ", pages=" + pages +
                '}';
    }
}
